{template 'common/header'}
<div class='panel panel-default'>
	<div class="panel-heading">
    	<h3 class='panel-title'>
        日志编辑
        </h3>
    </div>
    <div class="panel-body">
    	<form class="form-horizontal" role="form" action="{php echo $this->createWebUrl('listsave')}" method="post">
          <div class="form-group">
            <label  class="col-sm-2 control-label">标题</label>
            <div class="col-sm-10">
              <input type="text" name='title' class="form-control" value='{$work_log['title']}'  placeholder="请输入名字">
            </div>
          </div>
          <div class="form-group">
            <label for="lastname" class="col-sm-2 control-label">图片</label>
            <div class="col-sm-10">
              {php echo tpl_form_field_image('image',$work_log['image'])}
              <input name='id' type="hidden" value="{$work_log['id']}">
            </div>
          </div>
          <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
              <button type="submit" class="btn btn-danger">提交</button>
            </div>
          </div>
        </form>
    </div>
</div>

{template 'common/footer'}
<script>
$(function(){
	$("input[name='image']").val("{$work_log['image']}");
	$(".img-responsive").attr('src',"{$work_log['true_image']}");	
})
</script>